/*
 * Copyright: Tianjin Berheley Tech Co,.ltd, China
 * berheleyBI
 * com.berheley.exception -> BusinessException.java
 * Created on 2009-8-18-上午10:08:14
 */
package com.webframe.exception;

/**
 * 类功能描述：
 *
 * @author      <a href="mailto:tozxwu@hotmail.com">wuzhenxue </a>
 * Create:      2009-8-18 上午10:08:14
 * Description: 
 */
public class BusinessException extends Exception
{

	/**
	 * 
	 */
	private static final long serialVersionUID = 8033053672845400235L;
	
	private String errorKey ;
	private String errorCode;
	private Exception ogrinalException;
	/**
	 * @param errorKey
	 * @param errorCode
	 */
	public BusinessException(String errorKey, String errorCode)
	{
		super();
		this.errorKey = errorKey;
		this.errorCode = errorCode;
	}
	public BusinessException(String errorKey, String errorCode,Exception ogrinalException)
	{
		super();
		this.errorKey = errorKey;
		this.errorCode = errorCode;
		this.ogrinalException = ogrinalException;
	}
	/**
	 * @return Returns the errorKey.
	 */
	public String getErrorKey()
	{
		return errorKey;
	}
	/**
	 * @param errorKey The errorKey to set.
	 */
	public void setErrorKey(String errorKey)
	{
		this.errorKey = errorKey;
	}
	/**
	 * @return Returns the errorCode.
	 */
	public String getErrorCode()
	{
		return errorCode;
	}
	/**
	 * @param errorCode The errorCode to set.
	 */
	public void setErrorCode(String errorCode)
	{
		this.errorCode = errorCode;
	}
	/**
	 * @return Returns the ogrinalException.
	 */
	public Exception getOgrinalException()
	{
		return ogrinalException;
	}
	/**
	 * @param ogrinalException The ogrinalException to set.
	 */
	public void setOgrinalException(Exception ogrinalException)
	{
		this.ogrinalException = ogrinalException;
	}
	
	public void printOgrinalException()
	{
		this.ogrinalException.printStackTrace();
	}
	
	

}
